package tpf.designer.pattern.course6.behavior_pattern1.homework.exercise1;

import java.sql.ResultSet;
import java.sql.SQLException;

public class VehicleDb extends CommonDb<Vehicle> {

    private static final String SQL_SELECT_VEHICLE = "select * from vehicle";

    @Override
    protected Vehicle createEntityFromResultSet(ResultSet rs) throws SQLException {
        Vehicle vehicle = new Vehicle();
        return vehicle;
    }

    @Override
    protected String getSelectEntitySql() {
        return SQL_SELECT_VEHICLE;
    }
}
